package com.mine.consumer.faign;

import com.mine.consumer.model.Employee;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @功能
 * @创建时间 2020/4/14
 */
@FeignClient(name = "ability-service",fallback = FeginClientCallBack.class)
public interface faignclite {
    //调用的请求路径
    @RequestMapping(value = "/ablivity/{id}",method = RequestMethod.GET)
    public Employee findById(@PathVariable("id") Integer id);

}
